/* General */
  body {
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-canvas);
    color: var(--color-text-primary);
  }

  iframe {
    width: 100%;
    height: 100%;
    min-height: 70vh;
  }

  a:hover {
    cursor: pointer;
  }

/* Header */
  header {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--color-header-text);
    background-color: var(--color-header-bg);
  }

  header.beta {
    color: var(--color-text-warning);
    background-color: var(--color-bg-warning);
  }

  header svg {
    color: currentColor;
    fill: currentColor;
    margin-right: 1rem;
    height: 2rem;
    width: 2rem;
  }

  header a, header a:visited {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.5rem;
  }

  header .grow {
    flex-grow: 1;
  }

/* Interface */
  .ui {
    display: flex;
    flex-direction: column;
  }

  .ui > * {
    margin: 1rem;
  }

  .ui.top {
    border-bottom: 1px solid var(--color-border-secondary);
    max-width: 1250px;
    margin: 0 auto;
  }
  .ui.top > * {
    margin: 0 1rem;
  }
  .ui.top aside {
    display: none;
    width: 100%;
  }

  .ui-avatar {
    display: none;
    width: 70%;
    padding-top: 70%;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--color-avatar-border);
    border: 1px solid var(--color-border-primary);
    background-color: black;
    background-size: cover;
    margin: -3rem auto 1rem;
  }

/* Tabs */
  nav {
    display: flex;
    align-items: center;
    padding-top: 1.5rem;
    overflow: auto;
  }

  nav svg {
    fill: currentColor;
    margin-right: .5rem;
  }

  nav > div {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: .5rem 1rem;
    color: var(--color-underlinenav-text-hover);
    cursor: pointer;
  }

  nav > div.active {
    color: var(--color-underlinenav-text-active);
    border-bottom: 2px solid var(--color-underlinenav-border-active);
    font-weight: 600;
  }

  nav > div.disabled {
    opacity: .5;
    cursor: not-allowed;
  }

  nav > div:not(.active):hover {
    color: var(--color-underlinenav-text-hover);
    border-bottom: 2px solid var(--color-underlinenav-border-hover);
    transition-duration: all .12s ease-out;
  }

/* Configuration */
  aside {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
  }

  .configuration {
    background-image: linear-gradient(var(--color-alert-info-bg),var(--color-alert-info-bg));
    color: var(--color-alert-info-text);
    border: 1px solid var(--color-alert-info-border);
    border-radius: 6px;
    margin-top: .5rem;
    display: flex;
    flex-direction: column;
  }

  .configuration .options:not(:empty) {
    margin-top: .25rem;
    border-top: 1px solid var(--color-alert-info-border);
  }

  .configuration.plugins {
    width: 100%;
  }

  .configuration.plugins label {
    display: flex;
    align-items: flex-start;
  }

  .configuration.plugins .name {
    font-weight: 500;
  }

  .configuration.not-available {
    color: var(--color-text-secondary);
  }

  .configuration.deprecated {
    background-image: linear-gradient(var(--color-alert-warn-bg),var(--color-alert-info-bg));
    color: var(--color-alert-warn-text);
    border: 1px solid var(--color-alert-warn-border);
    opacity: .8;
  }

  .configuration .not-available.deprecated {
    display: none;
  }

  .category details {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .category summary {
    font-weight: bold;
    text-transform: capitalize;
  }

  .option {
    display: flex;
    flex-direction: column;
    padding: .25rem;
    overflow: hidden;
  }

  .option input[type=text], .option input[type=number], .option select {
    width: 100%;
  }

  .option.unsupported {
    background-image: linear-gradient(var(--color-bg-secondary),var(--color-bg-tertiary));
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border-secondary);
    border-bottom: 1px solid var(--color-border-secondary);
    opacity: .8;
  }

/* Preview */
  .preview {
    border: 1px solid var(--color-border-primary);
    border-radius: 6px;
    padding: 1rem;
    flex-grow: 1;
    overflow: auto;
  }

  .preview .image {
    overflow: auto;
  }

  .preview .image.pending {
    opacity: .25;
  }

  .code pre {
    border-radius: 6px;
  }

/* Readme */
  .readmes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
    font-size: .75rem;
    margin-bottom: 1rem;
  }
  .readme {
    display: flex;
    align-items: center;
    color: var(--color-text-primary);
  }
  .readme svg {
    fill: currentColor;
    margin-right: .5rem;
  }
  .readme .slash  {
    padding: 0 2px;
  }
  .readme .md  {
    color: var(--color-text-tertiary);
  }

/* Inputs */
  label {
    cursor: pointer;
  }
  label:hover {
    background-color: var(--color-input-contrast-bg);
  }

  input[type=text], input[type=number], select {
    background-color: var(--color-input-contrast-bg);
    padding: .4rem .8rem;
    color: var(--color-text-primary);
    background-color: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: 6px;
    outline: none;
    box-shadow: var(--color-shadow-inset);
  }

  input[type=text]:focus, input[type=number]:focus, select:focus {
    background-color: var(--color-input-bg);
    border-color: var(--color-state-focus-border);
    outline: none;
    box-shadow: var(--color-state-focus-shadow);
  }

  button {
    color: var(--color-btn-primary-text);
    background-color: var(--color-btn-primary-bg);
    border-color: var(--color-btn-primary-border);
    box-shadow: var(--color-btn-primary-shadow),var(--color-btn-primary-inset-shadow);
    padding: .4rem .8rem;
    border-radius: 6px;
    font-weight: 500;
    margin: .5rem 0;
    cursor: pointer;
    transition-duration: all .12s ease-out;
  }

  button[disabled] {
    color: var(--color-btn-primary-disabled-text);
    background-color: var(--color-btn-primary-disabled-bg);
    border-color: var(--color-btn-primary-disabled-border);
    cursor: not-allowed;
  }

  input[disabled] {
    cursor: wait;
  }

  button:focus {
    outline: none;
  }

  .oauth-github {
    color: var(--color-text-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .4rem .6rem;
    border-radius: 6px;
    font-weight: 500;
    background-color: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    cursor: pointer;
    font-size: 1rem;
  }
  .oauth-github.disabled {
    opacity: .5;
    pointer-events: none;
  }
  .oauth-github:hover {
    text-decoration: none;
  }
  .oauth-github svg {
    height: 1rem;
    width: 1rem;
    margin-right: .5rem;
  }

/* Links */
  a, a:hover, a:visited {
    color: var(--color-text-link);
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

/* Requests */
  small {
    text-align: center;
  }

/* Details */
  details summary:hover {
    background-color: var(--color-input-contrast-bg);
    border-radius: 6px;
    cursor: pointer;
  }

  details summary:focus {
    outline: none;
  }

/* Error */
  .alert.error {
    padding: 1.25rem 1rem;
    background-image: linear-gradient(var(--color-alert-error-bg),var(--color-alert-error-bg));
    color: var(--color-alert-error-text);
    border: 1px solid var(--color-alert-error-border);
    border-radius: 6px;
  }

  .error-text {
    color: var(--color-alert-error-text);
  }

/* Warning */
  .warning {
    padding: .5rem .75rem;
    background-image: linear-gradient(var(--color-alert-warn-bg),var(--color-alert-warn-bg));
    color: var(--color-alert-warn-text);
    border: 1px solid var(--color-alert-warn-border);
    border-radius: 6px;
    font-size: .8rem;
    margin-top: .25rem;
  }

/* Footer */
  main > footer {
    margin: 1rem 0;
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: .8rem;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border-secondary);
    font-style: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  main > footer > * {
    margin: 0 1rem;
  }

/* Media screen */
  @media only screen and (min-width: 740px)  {
    .ui {
      flex-direction: row;
    }
    .ui:not(.top) {
      max-width: 1280px;
      margin: .5rem auto;
    }
    .ui.top aside {
      display: block;
    }
    .ui-avatar {
      display: block;
    }
    aside {
      max-width: 25%;
      width: 100%;
    }
  }

/*Loading animation*/
  .loading {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
  }
  .loading::after {
    overflow: hidden;
    display: inline-block;
    content: "...";
    animation: loading-dots-keyframes 1.2s steps(4, jump-none) infinite;
  }

  @keyframes loading-dots-keyframes {
    0% { transform: translateX(-100%); }
  }

/* Containers */
  .container {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 920px;
    margin: auto;
    align-items: center;
    margin: 2rem auto 1rem;
  }
  .text-center {
    text-align: center;
  }
  .mb1 {
    margin-bottom: 1rem;
  }

/* OAuth */
  .badges-oauth {
    display: flex;
    align-items: center ;
  }
  .badges-oauth .border {
    width: 4rem;
    border-top: 3px dashed var(--color-border-secondary);
  }
  .badge-oauth {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    box-shadow: var(--color-shadow-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0D1117;
  }
  .oauth-scopes {
    display: flex;
  }
  .oauth-scopes label {
    margin: .5rem;
  }
  .oauth-revoke {
    color: var(--color-text-danger);
    background-color: var(--color-bg-danger);
    border-color: var(--color-border-danger);
    cursor: pointer;
  }
  .oauth small {
    font-size: .8rem;
    color: var(--color-text-secondary);
    max-width: 80%;
  }

/* Search */
  .search {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .search.app {
    padding: 1.5rem;
    border: 1px solid var(--color-border-primary);
    border-radius: 6px;
  }
  .search h2 {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    font-weight: normal;
  }
  .search h2 svg {
    margin-right: .25rem;
    fill: currentColor;
    height: 1.25rem;
    width: 1.25rem;
  }
  .search .about {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .search .about small {
    font-size: .8rem;
    color: var(--color-text-secondary);
    text-align: left;
  }
  .search .inputs {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  .search .inputs > * {
    margin: .25rem;
  }
  .search .inputs input {
    flex-grow: 1;
  }
  .search .inputs button {
    min-width: 7rem;
  }
  .search .info {
    color: var(--color-text-secondary);
    margin-top: 1rem;
  }
  .search .info svg {
    fill: currentColor;
  }
  @media only screen and (min-width: 740px)  {
    .search {
      width: 520px;
    }
  }